Conversion is a key element in SCOM composing. Vectors can become integers, integers can become symbols, and so on. In this respect cf-noise-white provides a more specific facility than cfunction in enabling conversion and substitution.
Here, a variable called prime-n is a list of prime numbers between 1 and 18. This becomes a reference sequence for a conversion process, from 24 vectors generated via the <function> gen-noise-white, to a <list> of prime numbers between 1 and 18 that have been substituted in an appropriate quantitive sequence. In the function cf-noise-white the function gen-noise-white is subsummed into the function whole.
The conversion and substitution process may also extend to symbols within a reference sequence.
(setq sym '(a b c d e f g h i j k l))
(cf-noise-white 24 1.0 .37 sym)
=> (c k j l g i d f j d l a b g e a j c j b g j c a)
In addition, the <samples> parameter may be treated as a list of integers indicating the length of sublists in the output statement.
(cf-noise-white '(3 5 7 5 3) 1.0 .37 sym)
=> ((a d l) (c l h a l) (l i a l c l a) (c g a f l) (l d a))
(cf-noise-white '(3 5 7 5 3) 1.0 nil sym)
=> ((i a l) (e k i a l) (c l k i l a f) (a d l k a) (h a l))
=> ...
(cf-noise-white 8 1.0 .23 '((ab ac ad bc) (a b c d)))
=> ((ac bc ab ad ac ac ac ab) (a d d b c c a d))
(cf-noise-white '(4 3 5) 1.0 .23 '((ab ac ad bc) (a b c d)))
=> ((ac bc ab ad) (a c d) (ab ad bc ad ab))
(cf-noise-white '(4 3 1 5 1 2 1)
'(-1.0 1.0) .23 '((ab ac ad bc) (a b c d)))
=> ((ac bc ab ad) (a c d) (ab) (a c a d a) (bc) (d a) (ab))
(cf-noise-white '(8 3) '(-1.0 .5) .34
'((a b c d) (ab ac ad bc) (e f g h)))
=> ((b d d c b d a d) (ac bc ab) (f g e h e f g h))